import { IForm } from '@/render/base-ui/form'

export const platformConfig: IForm = {
  labelWidth: '250px',
  itemStyle: {
    padding: '2px 10px'
  },
  colLayout: {
    span: 24
  },
  labelPosition: 'left',
  formItems: [
    {
      field: 'cpuType',
      type: 'select',
      label: 'CPU类型(CPU_TYPE)：',
      options: [
        {
          label: 'CPU_TYPE_8',
          value: 'CPU_TYPE_8'
        },
        {
          label: 'CPU_TYPE_16',
          value: 'CPU_TYPE_16'
        },
        {
          label: 'CPU_TYPE_32',
          value: 'CPU_TYPE_32'
        },
        {
          label: 'CPU_TYPE_64',
          value: 'CPU_TYPE_64'
        }
      ]
    },
    {
      field: 'cpuBitOrder',
      type: 'select',
      label: 'CPU位顺序(CPU_BIT_ORDER)：',
      options: [
        {
          label: 'MSB_FIRST',
          value: 'MSB_FIRST'
        },
        {
          label: 'LSB_FIRST',
          value: 'LSB_FIRST'
        }
      ]
    },
    {
      field: 'cpuByteOrder',
      type: 'select',
      label: 'CPU字节顺序(CPU_BYTE_ORDER)：',
      options: [
        {
          label: 'HIGH_BYTE_FIRST',
          value: 'HIGH_BYTE_FIRST'
        },
        {
          label: 'LOW_BYTE_FIRST',
          value: 'LOW_BYTE_FIRST'
        }
      ]
    }
  ]
}
